<!--
 * @Author: Leng
 * @Date: 2021-01-31 20:15:37
 * @Description: 
 * @FilePath: \vue-leng\src\App.vue
-->
<template>
  <router-view v-slot="{ Component }">
      <keep-alive :include="includeList">
        <component :is="Component" />
      </keep-alive>
  </router-view>
</template>

<script>
import { computed } from '@vue/runtime-core'
import { useStore } from 'vuex'
  export default {
    name: 'lengApp',
    setup() {
      const store = useStore()
      const includeList = computed(() => store.getters.getKeepAliveList)
      return {
        includeList
      }
    }
  }
</script>

<style lang="scss">
</style>
